package cn.edu.dzkd.software.mapper;

import cn.edu.dzkd.software.pojo.Scan;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ScanMapper {

    List<Scan> selectScans(@Param("index") int index,
                           @Param("componentName") String componentName,
                           @Param("riskName") String riskName,
                           @Param("bugName") String bugName);

    int selectScanCounts(@Param("componentName") String componentName,
                         @Param("riskName") String riskName,
                         @Param("bugName") String bugName);

    void insert(Scan scan);

    void update(Scan scan);

    void delete(Integer id);

}
